import { useAuthStore } from '@/store/modules/auth';

export function can(perm: string): boolean {
  const auth = useAuthStore();
  return auth.hasPerm(perm);
}

export function canAny(perms: string[]): boolean {
  const auth = useAuthStore();
  return auth.hasAnyPerm(perms);
}

export function canAll(perms: string[]): boolean {
  const auth = useAuthStore();
  return auth.hasAllPerm(perms);
}
